﻿@model SisGAC.Models.Pessoa

@{
    ViewBag.Title = "Meus Dados";
}

<h2>Meus Dados</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Informações Básicas</legend>

        @Html.HiddenFor(model => model.PessoaId)

        <div class="editor-label">
            @Html.LabelFor(model => model.CPF)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CPF)
            @Html.ValidationMessageFor(model => model.CPF)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RG)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RG)
            @Html.ValidationMessageFor(model => model.RG)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Endereco)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Endereco)
            @Html.ValidationMessageFor(model => model.Endereco)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Profissao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Profissao)
            @Html.ValidationMessageFor(model => model.Profissao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefone)
            @Html.ValidationMessageFor(model => model.Telefone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DataNascimento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataNascimento)
            @Html.ValidationMessageFor(model => model.DataNascimento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Formacao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Formacao)
            @Html.ValidationMessageFor(model => model.Formacao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Instituicao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Instituicao)
            @Html.ValidationMessageFor(model => model.Instituicao)
        </div>

        @if (ViewBag.TipoAcesso == 1)
        {
            <div class="editor-field">@Html.CheckBoxFor(model => model.Coordenador) @Html.LabelFor(model => model.Coordenador, new { @style = "font-weight:100;display: inline-block;" })</div>
            <div class="editor-field">@Html.CheckBoxFor(model => model.Avaliador) @Html.LabelFor(model => model.Avaliador, new { @style = "font-weight:100;display: inline-block;" })</div>
        }

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
